#include "pch.h"
#include "FinanceEntry.h"
#include "common.h"
#include <fstream>
#include "sqlite3.h"
#include <sstream>
#include <iostream>
#include <format>

CFinanceEntry::CFinanceEntry(): m_id(-1), m_time("0000-00-00"), m_income(0), m_entry_type(-1), m_entry_type_str("xxx"), m_money(-1) {
    
}

CFinanceEntry::CFinanceEntry(long long id, std::string time, bool income, int entry_type, std::string entry_type_str, double money): m_id(id), m_time(time), m_income(income), m_entry_type(entry_type), m_entry_type_str(entry_type_str), m_money(money){
    
}

CFinanceEntry::CFinanceEntry(std::string time, bool income, int entry_type, std::string entry_type_str, double money): m_id(-1), m_time(time), m_income(income), m_entry_type(entry_type), m_entry_type_str(entry_type_str), m_money(money){
    
}

CFinanceEntry::~CFinanceEntry(){
    
}

long long CFinanceEntry::GetId() const { return m_id; }
std::string CFinanceEntry::GetTime() const { return m_time; }
bool CFinanceEntry::GetIncome() const { return m_income; }
int CFinanceEntry::GetEntryType() const { return m_entry_type; }
std::string CFinanceEntry::GetEntryTypeStr() const { return m_entry_type_str; }
double CFinanceEntry::GetMoney() const { return m_money; }
